import request from "../utils/request";
import WxApiRoot from "../api";

// 微信登录
export async function wechatLogin(data) {
  return request.post(`${WxApiRoot}/login/wechat/login`, data);
}
// 获取-个人信息
export async function getUserInfo(data) {
  return request.post(`${WxApiRoot}/customer/mine`, data);
}
// 绑定手机号
export async function wechatBindPhone(data) {
  return request.post(`${WxApiRoot}/login/wechat/bindPhone`, data);
}

// 获取-机器列表
export async function getMachineList(data) {
  return request.post(`${WxApiRoot}/wechat/machine/machines`, data);
}
// 获取-机器信息
export async function getMachineInfo(data) {
  return request.post(`${WxApiRoot}/wechat/machine/info`, data);
}
// 机器-重命名
export async function machineRestName(data) {
  return request.post(`${WxApiRoot}/wechat/machine/restName`, data);
}
// 机器-删除
export async function machineRemove(data) {
  return request.post(`${WxApiRoot}/wechat/machine/remove`, data);
}
